package com.cskaoyan.mapper;

import com.cskaoyan.model.bean.Feedback;
import com.cskaoyan.model.bean.FeedbackExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FeedbackMapper {
    long countByExample(FeedbackExample example);

    int deleteByExample(FeedbackExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Feedback record);

    int insertSelective(Feedback record);

    List<Feedback> selectByExample(FeedbackExample example);

    Feedback selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Feedback record, @Param("example") FeedbackExample example);

    int updateByExample(@Param("record") Feedback record, @Param("example") FeedbackExample example);

    int updateByPrimaryKeySelective(Feedback record);

    int updateByPrimaryKey(Feedback record);

    void insertFeedBack(@Param("userId") int id, @Param("username") String username,@Param("mobile") String mobile, @Param("feedType") String feedType, @Param("content") String content, @Param("hasPicture") boolean hasPicture, @Param("picUrls") String toString);

}